import 'package:car_baidu/ui/page/mine/modify_password/modify_password.dart';
import 'package:car_baidu/ui/shared/theme/app_theme.dart';
import 'package:flutter/material.dart';

import '../../../shared/px/int_extentsion.dart';

class LLSettingContent extends StatelessWidget {
  const LLSettingContent({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: [
        Container(
          alignment: Alignment.center,
          color: Colors.white,
          height: 56.px,
          child: ListTile(
            leading: Image.asset("asset/image/mine_setting_password.png"),
            title: Text(
              "修改密码",
            ),
            trailing: Image.asset("asset/image/mine_list_next.png"),
            onTap: () {
              Navigator.of(context).pushNamed(LLModifyPasswordScreen.routeName);
            },
          ),
        ),
        SizedBox(
          height: 4.px,
        ),
        Container(
          height: 44.px,
          color: Colors.white,
          child: TextButton(
            onPressed: () {},
            child: Text(
              "安全退出",
              style: LLAppTheme.largerTextStyle
                  .copyWith(color: LLAppTheme.primaryColor),
            ),
          ),
        )
      ],
    );
  }
}
